package com.du.mq.consumer.listen;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Desc :
 * @Author: shuangdu
 * @date : 2024/1/4
 */
@RocketMQMessageListener(topic = "topic_order", consumerGroup = "test-consumer-group")
@Component
@Slf4j
public class OrderListener implements RocketMQListener<String> {

    @Override
    public void onMessage(String s) {
        log.info("【order】receive message: {}", s);
    }
}
